//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package tirt.test.admission;
import tirt.admission.RateBasedAdmissionControl;
import tirt.admission.SrcAdmissionControl;
import tirt.channels.BitrateChannel;
import tirt.sinks.SimpleSink;
import tirt.generators.PoissonGenerator;
import tirt.generators.MarkovModulatedPoissonProcessGenerator;
import tirt.generators.OnOffGenerator;
import tirt.generators.ExponentialGenerator;
import tirt.generators.TrafficGenerator;

network rate
{
    submodules:
        exp: ExponentialGenerator {
            @display("p=58,31");
        }
        onoff: OnOffGenerator {
            @display("p=58,108");
        }
        mmpp: MarkovModulatedPoissonProcessGenerator {
            @display("p=58,186");
        }
        poisson: PoissonGenerator {
            @display("p=58,261");
        }
        simpleSink: SimpleSink {
            @display("p=307,147");
        }
        admission: RateBasedAdmissionControl {
            @display("p=206,147");
        }
    connections:
        admission.out --> BitrateChannel --> simpleSink.in++;
        exp.out --> BitrateChannel --> admission.in++;
        onoff.out --> BitrateChannel --> admission.in++;
        mmpp.out --> BitrateChannel --> admission.in++;
        poisson.out --> BitrateChannel --> admission.in++;
}
